<template>

     <tbody class="kuang">
        <tr>
           <!-- <td>{{index}}</td> -->
           <td><input type="checkbox" /> </td>
           <td>{{name}}</td>
           <td>{{price}}</td>
           <td>{{num}}</td>
           <td>{{num * price}}</td>
           <td><button @click="del(index1)">删除</button></td>
        </tr>
     </tbody>

</template>

<script>
export default {
  // data () {
  //   return {

  //   }
  // },
  // props可以是一个数组也可以是一个对象
  props: ['name', 'price', 'num', 'SumNum', 'goodList', 'index1'],
  created () {

  },

  methods: {
    del (index) {
      // this.goodList.del(index)
      // alert(index)
      console.log(this.goodList)
      this.goodList.splice(index, 1)
    }

  }
}
</script>

<style scoped lang='less'>

</style>
